home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / dev / gcc / ixemul_src.lha / ixemul-41.0 / man / cat2 / setreuid.0 < prev    next >
Text File  |  1992-08-10  |  1KB  |  67 lines

  1.  
  2. SETREUID(2)                UNIX Programmer's Manual                SETREUID(2)
  3.  
  4. NNAAMMEE
  5.      sseettrreeuuiidd - set real and effective user ID's
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<uunniissttdd..hh>>
  9.  
  10.      _i_n_t
  11.      sseettrreeuuiidd(_i_n_t _r_u_i_d, _i_n_t _e_u_i_d)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      The real and effective user ID's of the current process are set according
  15.      to the arguments.  If _r_u_i_d or _e_u_i_d is ­1, the current uid is filled in by
  16.      the system.  Unprivileged users may change the real user ID to the effec­
  17.      tive user ID and vice­versa; only the super­user may make other changes.
  18.  
  19. RREETTUURRNN VVAALLUUEESS
  20.      Upon successful completion, a value of 0 is returned.  Otherwise, a value
  21.      of ­1 is returned and _e_r_r_n_o is set to indicate the error.
  22.  
  23. EERRRROORRSS
  24.      [EPERM]  The current process is not the super­user and a change other
  25.               than changing the effective user­id to the real user­id was
  26.               specified.
  27.  
  28. SSEEEE AALLSSOO
  29.      getuid(2),  setregid(2),  setuid(3)
  30.  
  31. HHIISSTTOORRYY
  32.      The sseettrreeuuiidd function call appeared in 4.2BSD.
  33.  
  34. 4th Berkeley Distribution       March 10, 1991                               1
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.